import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/global.css'
import request from "@/util/request";
import './store/index'
import store from "@/store";
import AMap from 'vue-amap'; //地图类
Vue.config.productionTip = false
Vue.use(ElementUI, {size: "small"})
Vue.prototype.request=request


Vue.use(AMap);
AMap.initAMapApiLoader({
    key: '在高德上为此应用申请的key',// 高德key
    plugin: [// 插件集合 （插件按需引入）'AMap.Geolocation'
        'AMap.Geocoder',
        'AMap.Autocomplete',
        'AMap.PlaceSearch',
        'AMap.Scale',
        'AMap.OverView',
        'AMap.Geolocation',
        'AMap.ToolBar',
        'AMap.MapType',
        'AMap.PolyEditor',
        'AMap.CircleEditor'],//
    v: '1.4.4' //指定版本号
});

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
